package com.felix.entity;

import lombok.Data;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;

import javax.persistence.Column;
import java.util.Date;

/**
 * @description BaseEntity
 * @auther: xuejh
 * @date: 2018/12/4 22:21
 */
public class BaseEntity {

    /**
     * 是否删除(0 启用， 1删除)
     */
    private int disabled;
    /**
     * 修改时间
     */
    @LastModifiedDate
    private Date modifyTime;
    /**
     * 创建时间
     */
    @CreatedDate
    private Date creeateTime;
    /**
     * 修改人
     */
    @LastModifiedBy
    private String modifyBy;
    /**
     * 创建人
     */
    @CreatedBy
    private String createBy;
}
